<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018\10\8 0008
  Time: 22:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>DVD管理系统</title>
    <style>
        .button {
            background-color: #4183c4;
            border: none;
            color: white;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            width: 150px;
            height: 30px;
            font-size: 16px;
            margin: 4px 2px;
            cursor: pointer;
        }
    </style>
</head>
<body>
<div align='center'>
    <h2>----欢迎进入DVD Mgr 6.0 管理系统----</h2>
</div>
<form action="../login.do" method="post">
    <table border="1" width="300" align="center">
        <tr>
            <th width=150px>账号：</th>
            <th><input type="text" name="username" title="username" style="text-align: center; width: 150px;"
                       onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"/></th>
        </tr>
        <tr>
            <th width=150px>密码：</th>
            <th><input type="password" name="userPassWord" title="userPassWord" style="text-align: center; width: 150px;"
                       onkeyup="value=value.replace(/[^\w\.\/]/ig,'')"/></th>
        </tr>
        <%--<tr>--%>
            <%--<%--%>
                <%--if(request.getAttribute("DL") == null){--%>
            <%--%>--%>
            <%--<th><a style="text-decoration-line: underline;color: blue;width: 150px;" href="./javaWebDvd/jsp/retrieve/retrieve.jsp">找回密码</a></th>--%>
            <%--<th><a style="text-decoration-line: underline;color: blue;width: 150px;" href="./javaWebDvd/jsp/register/register.jsp">注册账号</a></th>--%>
            <%--<%--%>
            <%--}else{--%>
            <%--%>--%>
            <%--<th><a style="text-decoration-line: underline;color: blue;width: 150px;" href="./atb/javaWebDvd/jsp/retrieve/retrieve.jsp">找回密码</a></th>--%>
            <%--<th><a style="text-decoration-line: underline;color: blue;width: 150px;" href="./atb/javaWebDvd/jsp/register/register.jsp">注册账号</a></th>--%>
            <%--<%--%>
                <%--}--%>
            <%--%>--%>
        <%--</tr>--%>
        <tr>
            <th colspan = '2'>
                <button type="submit" class="button">登陆</button>
            </th>
        </tr>
        <script type="text/javascript">
            if(<%= request.getAttribute("MSG")!=null %>){
                alert('<%=request.getAttribute("MSG") %>');
            }
        </script>
    </table>
</form>
</body>
</html>
